package com.ruoyi.carowner.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.carowner.mapper.CarownerPaymentCategoryMapper;
import com.ruoyi.carowner.domain.CarownerPaymentCategory;
import com.ruoyi.carowner.service.ICarownerPaymentCategoryService;

/**
 * 支付分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-14
 */
@Service
public class CarownerPaymentCategoryServiceImpl implements ICarownerPaymentCategoryService 
{
    @Autowired
    private CarownerPaymentCategoryMapper carownerPaymentCategoryMapper;

    /**
     * 查询支付分类
     * 
     * @param id 支付分类主键
     * @return 支付分类
     */
    @Override
    public CarownerPaymentCategory selectCarownerPaymentCategoryById(Integer id)
    {
        return carownerPaymentCategoryMapper.selectCarownerPaymentCategoryById(id);
    }

    /**
     * 查询支付分类列表
     * 
     * @param carownerPaymentCategory 支付分类
     * @return 支付分类
     */
    @Override
    public List<CarownerPaymentCategory> selectCarownerPaymentCategoryList(CarownerPaymentCategory carownerPaymentCategory)
    {
        return carownerPaymentCategoryMapper.selectCarownerPaymentCategoryList(carownerPaymentCategory);
    }

    /**
     * 新增支付分类
     * 
     * @param carownerPaymentCategory 支付分类
     * @return 结果
     */
    @Override
    public int insertCarownerPaymentCategory(CarownerPaymentCategory carownerPaymentCategory)
    {
        return carownerPaymentCategoryMapper.insertCarownerPaymentCategory(carownerPaymentCategory);
    }

    /**
     * 修改支付分类
     * 
     * @param carownerPaymentCategory 支付分类
     * @return 结果
     */
    @Override
    public int updateCarownerPaymentCategory(CarownerPaymentCategory carownerPaymentCategory)
    {
        return carownerPaymentCategoryMapper.updateCarownerPaymentCategory(carownerPaymentCategory);
    }

    /**
     * 批量删除支付分类
     * 
     * @param ids 需要删除的支付分类主键
     * @return 结果
     */
    @Override
    public int deleteCarownerPaymentCategoryByIds(Integer[] ids)
    {
        return carownerPaymentCategoryMapper.deleteCarownerPaymentCategoryByIds(ids);
    }

    /**
     * 删除支付分类信息
     * 
     * @param id 支付分类主键
     * @return 结果
     */
    @Override
    public int deleteCarownerPaymentCategoryById(Integer id)
    {
        return carownerPaymentCategoryMapper.deleteCarownerPaymentCategoryById(id);
    }
}
